FROM registry.cn-hangzhou.aliyuncs.com/hujiaming/node:16.15.0   AS builder
COPY ./ /app
WORKDIR /app
RUN npm install --registry=http://registry.npmmirror.com && npm run build

FROM registry.cn-hangzhou.aliyuncs.com/hujiaming/nginx:v1.24.0
RUN mkdir /app
COPY --from=builder /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf
